package com.czl.module_storehouse.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.czl.base.data.bean.tengyun.LocatListBean;
import com.czl.module_storehouse.R;

import java.util.List;

/**
 * @author xubin
 */
public class LocationInfoAdapter extends BaseQuickAdapter<LocatListBean, BaseViewHolder> {

    public LocationInfoAdapter(int layoutResId, @Nullable List<LocatListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, LocatListBean item) {
        helper.setText(R.id.text_num, "数量：" + item.getStorageNum())
                .setText(R.id.tv_loc, "库位：" + item.getStorehouseLocatName());
    }
}
